package router

import (
	"github.com/gin-gonic/gin"
	"work/src/work/internal/handler"
)

func Router(r *gin.Engine) {

	chatHandler := handler.NewChatHandler()
	chat := r.Group("/api/")

	chat.GET("/chat", chatHandler.Chat)

	playHandler := handler.NewPlayVideoHandler()
	r.GET("/list", playHandler.PlayVideo)

}
